package com.example.demo.controller;


import com.example.demo.model.Dbtypes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("y")
public class YmlController {

    @Value("${spring.datasource.url}")
    private String url;

    @Autowired
    private StudentController studentController;

    @Autowired
    private Dbtypes name;



    @RequestMapping("value")
    public String readValue(){
        System.out.println(name);
       // System.out.println(studentController);
        return url; //无视
    }

}
